﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraBars;

namespace QlpmClient
{
    public partial class MessageboxCustom : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public string title;
        public String Content;
        public int type = 0;
        public bool ok = false;
        public bool cancel = false;
        public MessageboxCustom()
        {
            InitializeComponent();
            
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            ok = true;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            cancel = true;
            this.Close();
        }

        private void MessageboxCustom_Load(object sender, EventArgs e)
        {
            lbContent.Text = Content;
            if (title != "")
            {
                this.Text = title;
            }
            if (type == 0)
            {
                btnOk.Visible = false;
                btnCancel.Text = "Ok";
            }
            
        }
    }
}